const {MongoClient} = require('mongodb')
// 数据库地址
let termMongo = null;

// 启动连接
async function init() {
  await MongoClient.connect(url, async (err, client) => {
    const db = await client.db("utools");
    termMongo = await db.collection('term');
    // dbToFile(termMongo)
  });
}

module.exports = {
  termMongo
}
